package cn.edu.ujn.service;

import cn.edu.ujn.dao.ParkingSpaceInfo;
import cn.edu.ujn.dao.ParkingSpaceInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ParkingSpaceInfoServiceImpl implements IParkingSpaceInfoService{

    @Autowired
    private ParkingSpaceInfoMapper parkingSpaceInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer spaceid) {
        return parkingSpaceInfoMapper.deleteByPrimaryKey(spaceid);
    }

    @Override
    public int insert(ParkingSpaceInfo row) {
        return parkingSpaceInfoMapper.insert(row);
    }

    @Override
    public int insertSelective(ParkingSpaceInfo row) {
        return parkingSpaceInfoMapper.insertSelective(row);
    }

    @Override
    public ParkingSpaceInfo selectByPrimaryKey(Integer spaceid) {
        return parkingSpaceInfoMapper.selectByPrimaryKey(spaceid);
    }

    @Override
    public int updateByPrimaryKeySelective(ParkingSpaceInfo row) {
        return parkingSpaceInfoMapper.updateByPrimaryKeySelective(row);
    }

    @Override
    public int updateByPrimaryKey(ParkingSpaceInfo row) {
        return parkingSpaceInfoMapper.updateByPrimaryKey(row);
    }

    @Override
    public List<ParkingSpaceInfo> selectAll(ParkingSpaceInfo parkingSpace) {
        return parkingSpaceInfoMapper.selectAll(parkingSpace);
    }
}
